<?php
//通过servername区分并加载独立渠道配置信息
$siteConfig = array(
	'default' => array(
		'APP_DOMAIN' => 'a.uri.com',
		'SITE_NAME' => '资产管理系统',
		'SITE_LOGO' => 'logo.png',
	),
);

$serverName = isset($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : '';

//初始化定义
$getSiteConfig = isset($siteConfig[$serverName]) ? $siteConfig[$serverName] : $siteConfig['default'];
foreach($getSiteConfig as $k=>$v){
	if(!defined($k)){
		define($k, $v);
	}
}


